package com.woniuxy.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

@Configuration
public class ThreadPoolConfig {
    @Bean
    public ScheduledExecutorService threadPool() {
        ScheduledExecutorService threadPool = Executors.newScheduledThreadPool(4);
        return threadPool;
    }
}
